package BigDecimal;

import java.math.BigDecimal;

public class bigdecimal {
    public static void main(String[] args) {
        double a = 0.1;
        double b = 0.2;
        double c = a + b;
        System.out.println(c);


        BigDecimal a1 =BigDecimal.valueOf(a);
        BigDecimal b1 =BigDecimal.valueOf(b);

        BigDecimal c1 =a1.add(b1);
    }
}
